package xh.server.commands.impl;

import xh.server.PlayerController;
import xh.server.commands.PlayerCommand;
import xh.server.commands.PlayerOperation;

/**
 * Created by Administrator on 2016/6/26.
 */
public class Volume implements PlayerCommand {

    private int value;

    public PlayerOperation getPlayerOperation() {
        return PlayerOperation.Volume;
    }

    public Object doCommand() {
        PlayerController.controller().volume(value);
        return null;
    }

    public void initFromParams(String[] params) {
        value = Integer.valueOf(params[0]);
    }

}
